import scala.actors._

object MyActor extends Actor {
  def act() {
    /*
    for (i <- 1 to 5 ) {
      println("Hey hey!")
      Thread.sleep(1000)
    }
    */
    while (true) {
        receive {
          case x =>
            println("receive msg: " + x)
        }
    }
  }
}
